package com.dong.containerEx.factoryBean;

import com.dong.containerEx.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * description
 *
 * @author Administrator 2021/08/31 11:02
 */
@Configuration
public class MyConfiguration {

    @Bean
    public User user(){
        User user = new User();
        user.setName("@Bean");
        return user;
    }
}
